export interface ValidateProps {
  email: string;
  token: string;
}
export function parseValidate(validate: string): boolean | ValidateProps {
  if (!validate) {
    return false;
  }
  try {
    const v = JSON.parse(atob(decodeURIComponent(validate))) as ValidateProps;
    return v;
  } catch (error) {
    console.warn(`validate invalid: ${error}`);
    return false;
  }
}
